package com.luoke.handler.response;

import com.luoke.connect.GameWebSocketClient;
import com.luoke.constants.SubmoduleTypeConstant;
import com.luoke.result.Result;
import com.luoke.service.response.BattleRoundResponseService;
import com.luoke.service.response.impl.BattleRoundResponseServiceImpl;

public class BattleRoundResponseHandle {

    private BattleRoundResponseService battleRoundResponseService = new BattleRoundResponseServiceImpl();

    public void handler(GameWebSocketClient gameWebSocketClient, Result result) {
        if (result.getCommand().equals(SubmoduleTypeConstant.FIRST_HAND_RESPONSE)) {
            battleRoundResponseService.firstHandResponse(gameWebSocketClient, result);
        } else if (result.getCommand().equals(SubmoduleTypeConstant.BAG)) {
            battleRoundResponseService.showBattleBagMenu(gameWebSocketClient, result);
        } else if (result.getCommand().equals(SubmoduleTypeConstant.OPPONENT_ROUND_COMPLETED)) {
            battleRoundResponseService.turnAurond(gameWebSocketClient, result);
        } else if (result.getCommand().equals(SubmoduleTypeConstant.PETS)) {
            battleRoundResponseService.showBattlePetMenu(gameWebSocketClient, result);
        } else if (result.getCommand().equals(SubmoduleTypeConstant.SKILLS)) {
            battleRoundResponseService.showBattleSkillMenu(gameWebSocketClient, result);

        }
    }


}
